﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="Users.aspx.cs" Inherits="EHotelMS.View.Admin.Users" EnableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MyBody" runat="server">

    <div class="container-fluid">
        <div class="row">
            <div class="col-4"></div>
            <div class="col-4">
                <h1 class="text-pink text-center">客房管理</h1>
            </div>
            <div class="col-4"></div>
        </div>
        <div class="row">
            <div class="col-md-3">
                <form>

                    <div class="mb-3">
                        <label for="UNameTb" class="form-label">用户名</label>
                        <input type="text" class="form-control" id="UNameTb" runat="server">
                    </div>

                    <div class="mb-3">
                        <label for="PhoneTb" class="form-label">電話號碼</label>
                        <input type="text" class="form-control" id="PhoneTb" runat="server">
                    </div>
                    <div class="mb-3">
                        <label for="GenCb" class="form-label">性别</label>
                        <asp:DropDownList ID="GenCb" runat="server" class="form-control">
                            <asp:ListItem>男</asp:ListItem>
                            <asp:ListItem>女</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                    <div class="mb-3">
                        <label for="AdressTb" class="form-label">地址</label>
                        <input type="text" class="form-control" id="AddressTb" runat="server">
                    </div>
                    <div class="mb-3">
                        <label for="PasswordTb" class="form-label">密碼</label>
                        <input type="text" class="form-control" id="PasswordTb" runat="server">
                    </div>

                    <div class="row">
                        <div class="col d-grid">
                            <asp:Button ID="EditBtn" runat="server" Text="编辑" class="btn btn-warning btn-block" OnClick="EditBtn_Click" />
                        </div>
                        <div class="col d-grid">
                            <asp:Button ID="DeleteBtn" runat="server" Text="删除" class="btn btn-danger btn-block" OnClick="DeleteBtn_Click" />
                        </div>
                    </div>
            <br />
            <div class="d-grid">
                <label id="ErrMsg" runat="server" class="text-danger"></label>
                <asp:Button ID="SaveBtn" runat="server" Text="保存" class="btn btn-pink btn-block" OnClick="SaveBtn_Click" />
            </div>
            <br />

            </form>
        </div>
        <div class="col-md-9">
            <asp:GridView ID="UserGV" runat="server" class="table" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" AutoGenerateSelectButton="True" OnSelectedIndexChanged="UserGV_SelectedIndexChanged">
                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#FFF1D4" />
                <SortedAscendingHeaderStyle BackColor="#B95C30" />
                <SortedDescendingCellStyle BackColor="#F1E5CE" />
                <SortedDescendingHeaderStyle BackColor="#93451F" />
            </asp:GridView>
        </div>
    </div>
    </div>

</asp:Content>
